package com.k.demo.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.k.demo.entity.RedBag;
import com.k.demo.entity.RedBagRecord;

public interface RedBagRecordService {
	
	List<RedBagRecord> getAll(int user_id);
	
	List<RedBagRecord> getByState(int state,int user_id);
	
	int changeState(int state,int user_id,int red_bag_record_id);
	
	//领取红包  新增一条记录
	int addRedBagRecord(RedBagRecord redBagRecord);
	
	//查询当前用户下的所有红包
	List<RedBagRecord> getByUserId(Integer user_id);
	
	//根据红包对象组合查询
	 PageInfo<RedBagRecord> searchResultWithPage(int pageNum, int pageSize, RedBagRecord redBagRecord);
	
	 //返回全部对象
	 List<RedBagRecord> getAllUserRecords();
	 
	 //返回当天使用的红包总额
	 Double getTotalValueByDate(String date);
	 
	 //返回当前用户的红阿伯数量
	 int getUserRedBagRecordAmount(int user_id);
}
